
public class factorial {

	public static void main(String[] args){
		int x = 12;
		int fac = 1;
		for(int i = 1;i <= 12;i++){
			fac = fac * i;
			System.out.println(fac);
		}
	}
}
